﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SProxyInfo extends IMessageBase
    {
        public var proxyLv:int;
        public var proxyExtend:int;
        public var proxyExtend2:int;
        public const _type:int = 253;
        public static var _regist:SProxyInfo = new SProxyInfo(true);

        public function SProxyInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SProxyInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.proxyLv);
            param1.writeInt(this.proxyExtend);
            param1.writeInt(this.proxyExtend2);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.proxyLv = param1.readInt();
            this.proxyExtend = param1.readInt();
            this.proxyExtend2 = param1.readInt();
            return;
        }// end function

    }
}
